package ynu.edu.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import ynu.edu.entities.BaseResponse;

import java.util.Map;

/**
 * 地址服务Feign客户端
 */
@FeignClient(name = "address-service", fallback = AddressFeignClientFallback.class)
public interface AddressFeignClient {

    /**
     * 获取地址信息
     */
    @GetMapping("/address/{addressId}")
    BaseResponse<Map<String, Object>> getAddressById(@PathVariable("addressId") Integer addressId);
} 